var form;
var table;
var $;
layui.use(['form','table'],function() {
    form = layui.form;
    table = layui.table;
    $ = layui.$;
})

//确定
$('#confirm').on('click',function(){
    var prosa=$('input[name=productSate]:checked').val();
    var id=$('input[name=productId]').val();
    var result=prosa;
    if(result==3){
        result="审核通过";
    }else{
        result="未通过";
    }
    var details=$('textarea[name=details]').val();
    console.log(details);
    if(details==''){
        details='无';
    }

    $.post("/OpeHome/setCommodityAudit",{"productSate":prosa,"productId":id,"result":result,"details":details,"type":3}, function (data) {});

    parent.shuaxin();

    var layer_1=parent.layer_1;
    layer_1.close(layer_1.index);
})